package com.plane;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        JFrame window = new JFrame();
        window.setBounds(100, -1, Map.MAP_WIDTH + 15, Map.MAP_HEIGHT + 36);
        window.setTitle("飞机大战");
        GamePanel gp = new GamePanel();
        window.add(gp);
        gp.addKeyListener(gp);
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setVisible(true);
        new Thread(gp).start();
    }
}